
// <copyright file="PropertyOrderAttribute.cs" company="Subhadra Software Solutions">
//   
// </copyright>
// <summary>
//   The property order attribute.
// </summary>

namespace SubhadraSolutions.Sharp.Utils.Reflection
{
    using System;

    /// <summary>
    /// The property order attribute.
    /// </summary>
    [AttributeUsage(AttributeTargets.Property, AllowMultiple = false)]
    public sealed class PropertyOrderAttribute : Attribute
    {
        #region Constructors and Finalizers

        /// <summary>
        /// Initializes a new instance of the <see cref="PropertyOrderAttribute"/> class.
        /// </summary>
        /// <param name="position">
        /// The position.
        /// </param>
        public PropertyOrderAttribute(int position)
        {
            this.Position = position;
        }

        #endregion Constructors and Finalizers

        #region Public Properties

        /// <summary>
        /// Gets the position.
        /// </summary>
        public int Position { get; private set; }

        #endregion Public Properties
    }
}
